package com.nowcoder.community;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;

@SpringBootApplication
public class CommunityApplication {


    @PostConstruct
    void init() {
        // 解决netty启动冲突问题
        // 从Netty4Utils.setAvailableProcessors()找到的解决办法
        System.setProperty("es.set.netty.runtime.available.processors", "false");
    }

	public static void main(String[] args) {
		SpringApplication.run(CommunityApplication.class, args);
	}

}
